<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class RetornoCNAB400</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class RetornoCNAB400</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-vars">Vars</a>
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
											<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
						
			</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Classe para leitura de arquivos de retorno de cobranças no padrão CNAB400.<br />  Layout Padrão CNAB/Febraban 400 posições<br />.</p>
<p class="description"><p>Baseado na documentação para &quot;Layout de Arquivo Retorno para Convênios  na faixa numérica entre 000.001 a 999.999 (Convênios de até 6 posições). Versão Set/09&quot;  do Banco do Brasil (arquivo CBR643-6_posicoes.pdf)</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Manoel Campos da Silva Filho. http://manoelcampos.com/contato</li>
				<li><span class="field">version:</span> 0.3</li>
				<li><span class="field">copyright:</span> GPLv2</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_RetornoCNAB400.php.html">/RetornoCNAB400.php</a> (line <span class="field">14</span>)
		</p>
		
				
		<pre><a href="../ArquivoRetornoTitulosBancarios/RetornoBase.html">RetornoBase</a>
   |
   --RetornoCNAB400</pre>
	
			</div>
</div>


	<a name="sec-const-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constant Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
												<a href="#sec-vars">Vars</a>
				 
				|
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<div class="const-summary">
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#DETALHE" title="details" class="const-name">DETALHE</a> = 					<span class="var-type"> 1</span>

				</div>
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#HEADER_ARQUIVO" title="details" class="const-name">HEADER_ARQUIVO</a> = 					<span class="var-type"> 0</span>

				</div>
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#TRAILER_ARQUIVO" title="details" class="const-name">TRAILER_ARQUIVO</a> = 					<span class="var-type"> 9</span>

				</div>
							</div>
		</div>
	</div>


	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
															<a href="#sec-vars">Vars</a>
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																												
												<div class="method-definition">
											<span class="method-result">RetornoCNAB400</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											([<span class="var-type"></span>&nbsp;<span class="var-name">$nomeArquivo</span> = <span class="var-default">NULL</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$aoProcessarLinhaFunctionName</span> = <span class="var-default">&quot;&quot;</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">array<mixed></span>
										<a href="#processarDetalhe" title="details" class="method-name">processarDetalhe</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$linha</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array<mixed></span>
										<a href="#processarHeaderArquivo" title="details" class="method-name">processarHeaderArquivo</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$linha</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#processarLinha" title="details" class="method-name">processarLinha</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$numLn</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$linha</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array<mixed></span>
										<a href="#processarTrailerArquivo" title="details" class="method-name">processarTrailerArquivo</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$linha</span>)
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
												<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
										<h4>Inherited Variables</h4>
				<A NAME='inherited_vars'><!-- --></A>
									<p>Inherited from <span class="classname"><a href="../ArquivoRetornoTitulosBancarios/RetornoBase.html">RetornoBase</a></span></p>
					<blockquote>
													<span class="var-title">
								<span class="var-name"><a href="../ArquivoRetornoTitulosBancarios/RetornoBase.html#var$aoProcessarLinha">RetornoBase::$aoProcessarLinha</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../ArquivoRetornoTitulosBancarios/RetornoBase.html#var$nomeArquivo">RetornoBase::$nomeArquivo</a></span><br>
							</span>
											</blockquote> 
										
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-vars">Vars</a>
																			<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
										<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">22</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">RetornoCNAB400</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$nomeArquivo</span> = <span class="var-default">NULL</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$aoProcessarLinhaFunctionName</span> = <span class="var-default">&quot;&quot;</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$nomeArquivo</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$aoProcessarLinhaFunctionName</span>			</li>
				</ul>
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../ArquivoRetornoTitulosBancarios/RetornoBase.html#method__construct">RetornoBase::__construct()</a></dt>
						<dd>Construtor da classe.</dd>
					</dl>
			
	</div>
<a name="methodprocessarDetalhe" id="processarDetalhe"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">processarDetalhe</span> (line <span class="line-number">55</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Processa uma linha detalhe do arquivo.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Retorna um vetor contendo os dados dos campos da linha detalhe.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array<mixed></span>
		<span class="method-name">
			processarDetalhe
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$linha</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$linha</span><span class="var-description">: Linha detalhe do arquivo processado</span>			</li>
				</ul>
		
			
	</div>
<a name="methodprocessarHeaderArquivo" id="processarHeaderArquivo"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">processarHeaderArquivo</span> (line <span class="line-number">29</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Processa a linha header do arquivo</p>
	<ul class="tags">
				<li><span class="field">return:</span> Retorna um vetor contendo os dados dos campos do header do arquivo.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array<mixed></span>
		<span class="method-name">
			processarHeaderArquivo
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$linha</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$linha</span><span class="var-description">: Linha do header de arquivo processado</span>			</li>
				</ul>
		
			
	</div>
<a name="methodprocessarLinha" id="processarLinha"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">processarLinha</span> (line <span class="line-number">165</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Processa uma linha do arquivo de retorno.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Retorna um vetor associativo contendo os valores_linha processada.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			processarLinha
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$numLn</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$linha</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$numLn</span><span class="var-description">: Número_linha a ser processada</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$linha</span><span class="var-description">: String contendo a linha a ser processada</span>			</li>
				</ul>
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../ArquivoRetornoTitulosBancarios/RetornoBase.html#methodprocessarLinha">RetornoBase::processarLinha()</a></dt>
						<dd>Processa uma linha do arquivo de retorno. O método é abstrato e deve ser implementado nas sub-classes.</dd>
					</dl>
			
	</div>
<a name="methodprocessarTrailerArquivo" id="processarTrailerArquivo"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">processarTrailerArquivo</span> (line <span class="line-number">128</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Processa a linha trailer do arquivo.</p>
	<ul class="tags">
				<li><span class="field">return:</span> Retorna um vetor contendo os dados dos campos da linha trailer do arquivo.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array<mixed></span>
		<span class="method-name">
			processarTrailerArquivo
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$linha</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$linha</span><span class="var-description">: Linha trailer do arquivo processado</span>			</li>
				</ul>
		
			
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname"><a href="../ArquivoRetornoTitulosBancarios/RetornoBase.html">RetornoBase</a></span></p>
					<blockquote>
													<span class="method-name"><a href="../ArquivoRetornoTitulosBancarios/RetornoBase.html#method__construct">RetornoBase::__construct()</a></span><br>
													<span class="method-name"><a href="../ArquivoRetornoTitulosBancarios/RetornoBase.html#methodformataData">RetornoBase::formataData()</a></span><br>
													<span class="method-name"><a href="../ArquivoRetornoTitulosBancarios/RetornoBase.html#methodformataNumero">RetornoBase::formataNumero()</a></span><br>
													<span class="method-name"><a href="../ArquivoRetornoTitulosBancarios/RetornoBase.html#methodgetNomeArquivo">RetornoBase::getNomeArquivo()</a></span><br>
													<span class="method-name"><a href="../ArquivoRetornoTitulosBancarios/RetornoBase.html#methodprocessarLinha">RetornoBase::processarLinha()</a></span><br>
													<span class="method-name"><a href="../ArquivoRetornoTitulosBancarios/RetornoBase.html#methodsetAoProcessarLinha">RetornoBase::setAoProcessarLinha()</a></span><br>
													<span class="method-name"><a href="../ArquivoRetornoTitulosBancarios/RetornoBase.html#methodsetNomeArquivo">RetornoBase::setNomeArquivo()</a></span><br>
													<span class="method-name"><a href="../ArquivoRetornoTitulosBancarios/RetornoBase.html#methodtriggerAoProcessarLinha">RetornoBase::triggerAoProcessarLinha()</a></span><br>
											</blockquote>
										
		</div>
	</div>

	<a name="sec-consts"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constants</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
						
			
												<a href="#sec-vars">Vars</a>
														| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="constDETALHE" id="DETALHE"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">DETALHE</span>
			 = <span class="const-default"> 1</span>
			(line <span class="line-number">18</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constHEADER_ARQUIVO" id="HEADER_ARQUIVO"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">HEADER_ARQUIVO</span>
			 = <span class="const-default"> 0</span>
			(line <span class="line-number">16</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constTRAILER_ARQUIVO" id="TRAILER_ARQUIVO"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">TRAILER_ARQUIVO</span>
			 = <span class="const-default"> 9</span>
			(line <span class="line-number">20</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
						
		</div>
	</div>

	<p class="notes" id="credit">
		Documentation generated on Wed, 20 Apr 2011 09:10:48 -0300 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>